package org.xiaoxiao.pojo;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
import lombok.Data;

@Data
@JacksonXmlRootElement(localName = "book")
public class Book {
    @JacksonXmlProperty(isAttribute = true)
    private String id;

    private String title;
    private String author;
    private String description;
    @JsonProperty("publish-year")
    private int publishYear;

    private int votes;

}
